package com.hboot.upms.service;

import com.hboot.upms.mapper.UserMapper;
import com.hboot.upms.model.User;
import com.hboot.upms.dao.UserMgrDao;
import com.hboot.upms.facade.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户服务实现类
 * Created by [daicx] on 2017/10/31.
 */
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserMapper userMapper;

    @Autowired
    private UserMgrDao userMgrDao;

    @Override
    public User selectById(Integer userId) {
        return userMapper.selectById(userId);
    }

    @Override
    public User getByAccount(String account) {
        return userMgrDao.getByAccount(account);
    }
}
